1
'------------------------------------------------------------------------------
3 ' This code was generated by a tool.
4 ' Runtime Version:2.0.50727.3521
6 ' Changes to this file may cause incorrect behavior and will be lost if
7 ' the code is regenerated.
9 '------------------------------------------------------------------------------
17 <Global.System
.Runtime
.CompilerServices
.CompilerGeneratedAttribute(), _
18 Global.System
.CodeDom
.Compiler
.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "9.0.0.0"), _
19 Global.System
.ComponentModel
.EditorBrowsableAttribute(Global.System
.ComponentModel
.EditorBrowsableState
.Advanced
)> _
20 Partial
Friend NotInheritable Class MySettings
21 Inherits
Global.System
.Configuration
.ApplicationSettingsBase
23 Private Shared defaultInstance
As MySettings
= CType(Global.System
.Configuration
.ApplicationSettingsBase
.Synchronized(New MySettings
), MySettings
)
25 #Region
"My.Settings Auto-Save Functionality"
26 #
If _MyType
= "WindowsForms" Then
27 Private Shared addedHandler
As Boolean
29 Private Shared addedHandlerLockObject
As New Object
31 <Global.System
.Diagnostics
.DebuggerNonUserCodeAttribute(), Global.System
.ComponentModel
.EditorBrowsableAttribute(Global.System
.ComponentModel
.EditorBrowsableState
.Advanced
)> _
32 Private Shared
Sub AutoSaveSettings(ByVal sender
As Global.System
.Object, ByVal e
As Global.System
.EventArgs
)
33 If My
.Application
.SaveMySettingsOnExit
Then
40 Public Shared ReadOnly
Property [Default
]() As MySettings
43 #
If _MyType
= "WindowsForms" Then
44 If Not addedHandler
Then
45 SyncLock addedHandlerLockObject
46 If Not addedHandler
Then
47 AddHandler My
.Application
.Shutdown
, AddressOf AutoSaveSettings
53 Return defaultInstance
61 <Global.Microsoft
.VisualBasic
.HideModuleNameAttribute(), _
62 Global.System
.Diagnostics
.DebuggerNonUserCodeAttribute(), _
63 Global.System
.Runtime
.CompilerServices
.CompilerGeneratedAttribute()> _
64 Friend Module MySettingsProperty
66 <Global.System
.ComponentModel
.Design
.HelpKeywordAttribute("My.Settings")> _
67 Friend ReadOnly
Property Settings() As Global.VBPInvokeDll
.My
.MySettings
69 Return Global.VBPInvokeDll
.My
.MySettings
.Default